package com.agrimall.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单实体类
 */
@Data
public class Order {
    private Long orderId;
    private String orderNo;
    private Long userId;
    private Long merchantId;
    private BigDecimal totalAmount;
    private Integer status; // 0-待付款，1-待发货，2-待收货，3-已完成，4-已取消，5-售后中
    private String paymentMethod;
    private Date paymentTime;
    private String deliveryAddress;
    private String receiverName;
    private String receiverPhone;
    private String logisticsCompany;
    private String logisticsNo;
    private Date createTime;
    private Date updateTime;
    
    // 关联数据
    private List<OrderItem> orderItems;
    private User user;
    private User merchant; // 商户信息
    private Product product;
}



